package com.tao.admin.controller;

import com.tao.admin.service.OrderService;
import com.tao.param.PageParam;
import com.tao.utils.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 86130
 * 后台订单管理
 */
@RestController
@RequestMapping("order")
public class OrderController {

    @Resource
    private OrderService orderService;

    @GetMapping("list")
    public R list(PageParam pageParam) {
        return orderService.list(pageParam);
    }
}
